#ifndef BASICAREACHART_H
#define BASICAREACHART_H

#include "../basic/Chart.h"
#include "../common/Axis.h"
#include <vector>
#include "../../gui/GlobalChartOptions/GlobalChartOptions.h"

namespace LightChart
{
    class BasicAreaChart : public Chart
    {
    public:
	BasicAreaChart(std::string title = "Area chart");
	void draw();
	void showOptions();
	std::vector<Axis*> get_axes();
	const std::vector<unsigned short int>& get_contribution();
	Axis values, labels;
    protected:
	void restoreGlobalSettings();
    private:
	std::vector<unsigned short int> contribution;
	friend class boost::serialization::access;
	template<class Archive> void serialize(Archive & ar, const unsigned int version);
    };
    template<class Archive> inline void BasicAreaChart::serialize(Archive & ar, const unsigned int) {
	ar & boost::serialization::base_object<Chart>(*this);
	ar & values & labels;
    }
}
#if BOOST_VERSION > 104200
#else
BOOST_CLASS_EXPORT(LightChart::BasicAreaChart)
#endif
#endif // BASICAREACHART_H
